package cn.com.system.service.impl;


import cn.com.system.mapper.PlanDao;
import cn.com.system.pojo.Plan;
import cn.com.system.service.PlanService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("planService")
public class PlanServiceImpl implements PlanService {
    @Resource
    private PlanDao planDao;


    @Override
    public List<Plan> selectAll(Plan plan) {
        return planDao.selectAll(plan);
    }

    @Override
    public int updatePlan(Plan plan) {
        return planDao.updatePlan(plan);
    }

    @Override
    public int deletePlan(int pId) {
        return planDao.deletePlan(pId);
    }
}
